export default [{
    path: '/items',
    name: 'class',
    meta: {
        keepAlive: true
    },
    components: {
        default: () =>
            import('@/views/items/tabbar-catalog')
    }
},
{
    path: '/items/search',
    name: 'search',
    meta: {
        keepAlive: true
    },
    component: () =>
        import('@/views/items/search')
},
{
    path: '/items/detail/:itemId/:id',
    name: 'detail',
    props: true,
    component: () =>
        import('@/views/items/detail')
},
{
    path: '/items/category',
    name: 'category',
    meta: {
        keepAlive: true
    },
    components: {
        default: () =>
            import('@/views/items/category'),
    },
    props: {
        default: route => route.query
    }
},
{
    path: '/items/hot',
    name: 'hot',
    component: () =>
        import('@/views/items/hot'),
    props: route => route.query
},
{
    path: '/items/new',
    name: 'new',
    component: () =>
        import('@/views/items/new'),
    props: route => route.query
},
{
    path: '/items/groupon',
    name: 'groupon',
    component: () =>
        import('@/views/items/groupon'),
    props: route => route.query
},
{
    path: '/items/brand/:brandId',
    name: 'brand',
    props: true,
    component: () =>
        import('@/views/items/brand')
},
{
    path: '/items/purchase/:itemId/:id',
    name: 'purchase',
    props: true,
    component: () =>
        import('@/views/items/purchase')
},
{
    path: '/items/pinsahre',
    name: 'pinshare',
    props: true,
    component: () =>
        import('@/views/items/purchase/pinshare.vue'),
    meta: {
        title: '拼团'
    }
},

{
    path: '/items/purchaselist',
    name: 'purchase_list',
    props: true,
    component: () =>
        import('@/views/items/purchase/purchase_list.vue')
},
{
    path: '/items/brand-list',
    name: 'brandList',
    component: () =>
        import('@/views/items/brand-list'),
    props: route => route.query
},
{
    path: '/items/topic/:topicId',
    name: 'topic',
    props: true,
    component: () =>
        import('@/views/items/topic')
},
{
    path: '/items/topic-list',
    name: 'topicList',
    component: () =>
        import('@/views/items/topic-list'),
    props: route => route.query
},
{
    path: '/items/members-zone/:id',
    name: 'members-zone',
    component: () =>
        import('@/views/items/members-zone'),
    props: route => route.query,

    meta: {

        title: '会员专区'
    }
},
{
    path: '/items/member-pay',
    name: 'member-pay',
    component: () =>
        import('@/views/items/member-pay'),
}
];